/* PrismJS 1.30.0
https://prismjs.com/download#themes=prism-dark&languages=markup+css+clike+javascript+c+cpp+java+json+json5+python */

/**
 * Modern Dark theme for Prism.js
 * A sleek, modern dark theme with improved color harmony
 * @author Modern Design
 * @version 2.0.0
 */

code[class*="language-"],
pre[class*="language-"] {
    color: #e1e7ef;
    background: #0d1117;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

@media print {
    code[class*="language-"],
    pre[class*="language-"] {
        text-shadow: none;
    }
}

/* 现代化的背景板设计 */
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: #0d1117;
    border: 1px solid #21262d;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

pre[class*="language-"] {
    padding: 1.25em;
    margin: 1.5em 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #21262d;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    position: relative;
}

pre[class*="language-"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7b72, #7ee787, #79c0ff);
    border-radius: 8px 8px 0 0;
}

:not(pre) > code[class*="language-"] {
    padding: 0.2em 0.4em;
    border-radius: 6px;
    border: 1px solid #21262d;
    white-space: normal;
    background: #161b22;
    color: #e6edf3;
}

/* 现代化的配色方案 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #7d8590;
    font-style: italic;
}

.token.punctuation {
    color: #8b949e;
}

.token.namespace {
    color: #f85149;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #ff7b72;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a5d6ff;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #c9d1d9;
    background: transparent;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #ff7b72;
    font-weight: 500;
}

.token.function {
    color: #d2a8ff;
}

.token.regex,
.token.important,
.token.variable {
    color: #7ee787;
}

.token.important,
.token.bold {
    font-weight: 600;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* 代码行号样式优化 */
.line-numbers .line-numbers-rows {
    border-right: 1px solid #21262d;
}

.line-numbers-rows > span:before {
    color: #7d8590;
}

/* 选中文本样式 */
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
    background: #1e4273;
    color: #e6edf3;
}

/* 滚动条样式优化 */
pre[class*="language-"]::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

pre[class*="language-"]::-webkit-scrollbar-track {
    background: #0d1117;
}

pre[class*="language-"]::-webkit-scrollbar-thumb {
    background: #21262d;
    border-radius: 4px;
}

pre[class*="language-"]::-webkit-scrollbar-thumb:hover {
    background: #30363d;
}